package cn.elegent.lock.annotation;

import java.lang.annotation.*;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
//@Inherited
public @interface ELegentLock {

    //key值，锁名称
    String lockName() default "elegentLock";

    /**
     * 总是获取锁，获取不到会等待
     * @return
     */
    boolean always() default false;
}
